home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 1 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: gwen.pcug.co.uk!news
  2. From: simon@epsilon.win-uk.net (Simon Ho)
  3. Newsgroups: comp.sys.m68k
  4. Subject: M68K asm beginner with a problem
  5. Date: Tue, 02 Jan 1996 01:55:49 GMT
  6. Organization: The PC User Group, UK
  7. Message-ID: <30e88c51.9635879@nntp.ibmpcug.co.uk>
  8. Reply-To: simon@epsilon.win-uk.net
  9. NNTP-Posting-Host: am055.du.pipex.com
  10. X-Newsreader: Forte Agent .99d/32.168
  11.  
  12. Hi
  13.  
  14. I trying my hand at assembly language on the m68k cpu. I am trying to
  15. program a small program to set up a list using dc.w command (for some
  16. insert/delete routines later) but aren't quite sure how to implement
  17. it.
  18.  
  19. To clarify, I have a list of values.  I want to set up an 'array'
  20. with the value and  an address pointer to the next value. Ideally, I
  21. would SECT this so that it can go in any available part of memory.
  22.  
  23. Do I have to set up loads of move.w commands?
  24.  
  25. Do I just 
  26.  
  27.     dc.w.  $200, 3, $202, 4, etc ?
  28.  
  29. or what?
  30.  
  31. This should allow me to program a routine to insert a value at the end
  32. of the array but with the pointer of the next lowest number pointing
  33. to that value and then have the pointer associated with that value
  34. pooint to the next highest value.
  35.  
  36. TIA
  37.  
  38. Simon
  39.